﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Galaxy.AutoCAD.Doubles
{
    public static class DoubleTool
    {
        #region 获得double数组中最大值
        public static double GetMax(List<double> doubles)
        {
            double result = doubles[0];
            foreach (double outDouble in doubles)
            {
                if (outDouble > result)
                {
                    result = outDouble;
                }
            }
            return result;
        }
        #endregion
    }
}
